package com.akk.utils.exception;


import com.akk.utils.R;

public class BusinessException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	
    private String msg;
    private String code = R.ERROR_ONE;

	public BusinessException(String msg) {
		super(msg);
		this.msg = msg;
	}

	public BusinessException() {
		super();
		this.msg = "系统异常请稍后重试.";
	}
	
	public BusinessException(String msg, Throwable e) {
		super(msg, e);
		this.msg = msg;
	}
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}


	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}




}
